﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sealight.API.Ioc;
using Sealight.CoreAPI;
using Sealight.Core.DataAdapter;

namespace Sealight.UI.WebUI.Services
{
    public class SettingServices
    {
        public static void AddOrUpdate(settings data)
        {
            var svc = IocContainer.Container().Resolve<ISettingService>();
            svc.AddOrUpdate(data);
        }
        public static settings GetSettings()
        {
            var svc = IocContainer.Container().Resolve<ISettingService>();
            return svc.GetSettings();
        }
    }
}